package com.lanou3g.demo.mapper;

import com.lanou3g.demo.entity.Account;
import com.lanou3g.demo.entity.Cost;
import com.lanou3g.demo.entity.Service;
import com.lanou3g.demo.entity.ServiceCondition;

import java.util.List;

public interface ServiceMapper {
    List<Service> selectAll();

    void add(Service service);

    void pause(Service service);

    void delete(Service service);

    void start(Service service);

    List<Cost> selectAllCost();

    Service selectAllDetail(Integer serviceId);

    //    不能写两个参数
    void updateCost(Service service);

    List<ServiceCondition> findAllByCondition(ServiceCondition serviceCondition);

    List<ServiceCondition> findCountByCondition(ServiceCondition serviceCondition);

    List<Service> findByPage(Integer page);

    Account hasAccount(Account account);

}
